package com.yixun.qfbao.model.enums;

/**
 * 逾期决策类型：1:变更报备保护期,2:无报备保护期,3:无法报备
 */
public enum DecisionTypeEnum {

    TYPE1(1, "变更报备保护期"),
    TYPE2(2, "无报备保护期"),
    TYPE3(3, "无法报备");

    public static String getDescByNo(int no) {
        for (DecisionTypeEnum decisionTypeEnum : DecisionTypeEnum.values()) {
            if(no == decisionTypeEnum.getNo()) {
                return decisionTypeEnum.getDesc();
            }
        }
        return null;
    }

    DecisionTypeEnum(int no, String desc) {
        this.no = no;
        this.desc = desc;
    }

    private int no;
    private String desc;

    public int getNo() {
        return no;
    }

    public String getDesc() {
        return desc;
    }
}
